import axios from "axios"

const path = "http://localhost:3000"
function request(config) {
  const instance = axios.create({
    baseURL: path,
    timeout: 20000,
  })

  // 请求拦截
  instance.interceptors.request.use(res => {
    return res;
  }, err => {
    return err;
  })
  return instance(config)
}

// 获取推荐视频
export const getVideoGroup = () => {
  return request({
    method: "GET",
    url: "/personalized/mv"
  })
}